package mx.com.fractal.ristorante.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name="restaurante")
@XmlAccessorType(XmlAccessType.NONE)
public class RestauranteDTO {
	
	public RestauranteDTO() {
	}
	
	
	public RestauranteDTO(Short idRestaurante) {
		this.idRestaurante = idRestaurante;
	}

	@XmlAttribute(name="id-restaurante")
	private Short idRestaurante;
	
	@XmlElement(name="nombre")
	private String nombre;
	
	@XmlElement(name="razon-social")
	private String razonSocial;

	public Short getIdRestaurante() {
		return idRestaurante;
	}

	public void setIdRestaurante(Short idRestaurante) {
		this.idRestaurante = idRestaurante;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public String getRazonSocial() {
		return razonSocial;
	}

	public void setRazonSocial(String razonSocial) {
		this.razonSocial = razonSocial;
	}


	@Override
	public String toString() {
		return "RestauranteDTO [idRestaurante=" + idRestaurante + ", nombre="
				+ nombre + ", razonSocial=" + razonSocial + "]";
	}
	
	
	
}
